package com.xiaoxu.scala_base.code._4_Scala隐式转换

import java.io.File

import com.xiaoxu.scala_base.code._4_Scala隐式转换.JavaFileToScallaFile.RichFile
import com.xiaoxu.scala_base.code._4_Scala隐式转换.MenToSupperMan.{Man, Superman}

object ImplicitAspect {
  implicit val name = "implicit_name"
  implicit def man2superman(man:Man):Superman = new Superman(man.name)

  implicit def file2RichFile(file: File): RichFile = new RichFile(file)

}
